<%@ page import="io.github.luyanfei.QuestionAttempt" %>



<div class="fieldcontain ${hasErrors(bean: questionAttemptInstance, field: 'mark', 'error')} required">
	<label for="mark">
		<g:message code="questionAttempt.mark.label" default="Mark" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="mark" value="${fieldValue(bean: questionAttemptInstance, field: 'mark')}" required=""/>

</div>

<div class="fieldcontain ${hasErrors(bean: questionAttemptInstance, field: 'question', 'error')} required">
	<label for="question">
		<g:message code="questionAttempt.question.label" default="Question" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="question" name="question.id" from="${io.github.luyanfei.Question.list()}" optionKey="id" required="" value="${questionAttemptInstance?.question?.id}" class="many-to-one"/>

</div>

<div class="fieldcontain ${hasErrors(bean: questionAttemptInstance, field: 'quizAttempt', 'error')} required">
	<label for="quizAttempt">
		<g:message code="questionAttempt.quizAttempt.label" default="Quiz Attempt" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="quizAttempt" name="quizAttempt.id" from="${io.github.luyanfei.QuizAttempt.list()}" optionKey="id" required="" value="${questionAttemptInstance?.quizAttempt?.id}" class="many-to-one"/>

</div>

<div class="fieldcontain ${hasErrors(bean: questionAttemptInstance, field: 'response', 'error')} required">
	<label for="response">
		<g:message code="questionAttempt.response.label" default="Response" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="response" required="" value="${questionAttemptInstance?.response}"/>

</div>

